package com.ygqh.baby.service;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgBrand;

import java.util.List;

public interface YgBrandService {


    List<YgBrand> find();

    int findCount();

    YgBrand findById(Long id);

    int deleteSoft(Long[] ids);

    int deleteSoft(Long id);

    int save(YgBrand ygBrand);

    int update(YgBrand ygBrand);

    int saveOrUpdate(YgBrand ygBrand);

    ResultSet<YgBrand> search(QueryInfo queryInfo, Long supplierId, String q);

    Boolean isSelfBrand(String brandName);

    List<YgBrand> getBrandList(Long supplierId, QueryInfo queryInfo, String q);


    List<YgBrand> findByIdList(List<Long> brandIdList);
}
